package com.clear.honghefinance.biz.modules.voucher.domain.dto;


import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * 创建凭证字DTO
 */
@Getter
@Setter
public class CreateVoucherWordConfigDTO implements Serializable {

    @ApiModelProperty(value = "凭证字")
    @NotNull(message = "请输入凭证字")
    @Size(min = 1, max = 10, message = "凭证字长度不能超过10")
    private String voucherWord;

    /**
     * 打印标题
     */
    @ApiModelProperty(value = "打印标题")
    @NotBlank(message = "请输入打印标题")
    @Size(min = 1, max = 50)
    private String printTitle;
}
